<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>二维码生成- </title> 
<%@ include file="/WEB-INF/pages/common/common.jsp"%>
 
<script type="text/javascript"  >
	var webPath = '${base}';
	$(function(){
		 
	});
	function showQRCode(){
		$("#QRCodePic").empty();    
		if($("#content").val()==""){
			alert("输入内容");
		}else{
			$('#QRCodePic').append('<img id="QRCodePicImg" src="'+webPath+'/QRCode/create?content='+$("#content").val()+'" />')
			window.location.href = _webApp + '/QRCode/downQRCode?content='+$("#content").val();
		}
	}
	  
</script>
</head>
<body>
	<div  style="margin: 25px;">
		<table>
			<tbody><tr style="height: 35px;">
				<td class="field" >内容：</td>
				<td colspan="3" style=" width: 400px;"><input type='text' id="content" style="height: 80%;width: 100%;"/></td>
			</tr> 
			<tr>
				<td class="field">操作:</td>
				<td colspan="3"><a href="javascript:showQRCode();" id="createBtn">生成并下载</a></td>
			</tr>
		</tbody></table>  
	</div>
	<div id="QRCodePic" style="margin: 25px;">
	</div>
</body>
</html>